{cover_enabled, true}.

{erl_opts, [warnings_as_errors]}.

{deps, [
  {hex2bin, "1.0.0"}
]}.

{plugins, [pc]}.

{provider_hooks,
 [
  {pre,
   [
    {compile, {pc, compile}},
    {clean, {pc, clean}}
   ]
  }
 ]
}.

{port_specs, [{"priv/ksha3_nifs.so", ["c_src/*.c", "c_src/opt64/*.c"]}]}.

{port_env, [
             %% Make sure to link -lstdc++ on linux or solaris
             {"(linux|solaris)", "CXXFLAGS", "-O2"},
             {"(linux|solaris)", "LDFLAGS", "$LDFLAGS -lstdc++"},

             %% OS X Leopard flags for 64-bit
            {"darwin9.*-64$", "CXXFLAGS", "-m64"},
            {"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},

             %% OS X Snow Leopard flags for 32-bit
             {"darwin1?\.*-32-unix", "CXXFLAGS", "-m32"},
             {"darwin1?\.*-32-unix", "LDFLAGS", "-arch i386"},

             %% OS X Snow Leopard/Lion flags for 64-bit
             {"darwin1?\.*-64-unix", "CXXFLAGS", "-m64"},
             {"darwin1?\.*-64-unix", "LDFLAGS", "-arch x86_64"}
             ]}.
